﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDShop.Entities;
using BDShop.DAL;
using IsolationLevel = System.Transactions.IsolationLevel;

namespace BDShop.Business
{
   public class SliderService
    {
       public static List<Slider> GetListSliderCacheModel()
       {
           List<Slider> lstSlider = new List<Slider>();
           using (var context = new BDShopEntities(IsolationLevel.ReadUncommitted))
           {
               lstSlider = context.Sliders.ToList();
           }

           return lstSlider;
       }
    }
}
